/*
 * @Author: jqgao2
 * @Date: 2022-03-23 22:06:40
 * @LastEditTime: 2022-03-23 22:23:36
 * @Description: CreateCoffeeDto
 * @FilePath: \ilovecoffee\src\coffees\dto\create-coffee.dto.ts
 * @LastEditors: jqgao2
 */
import { IsString } from 'class-validator';

export class CreateCoffeeDto {
  @IsString()
  readonly name: string;

  @IsString()
  readonly brand: string;

  @IsString({ each: true })
  readonly flavors: string[];
}
